//
//  MenmView.m
//  ZYShang
//
//  Created by wangguangming on 15/7/28.
//  Copyright © 2015年 Amber. All rights reserved.
//

#import "MenmView.h"

#import "Base.h"
@implementation MenmView
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
        {
        self.backgroundColor=[UIColor grayColor];
        [self addall];
        }
    return self;
}
-(void)addall
{
    self.readyButton=[[UIButton alloc] initWithFrame:CGRectMake(0, 0, WIDTH/2-10, 39)];
//    self.readyButton.backgroundColor=[UIColor blackColor];
    
    self.noButton=[[UIButton alloc] initWithFrame:CGRectMake(0, 40, WIDTH/2-10,39)];
//    self.noButton.backgroundColor=[UIColor blackColor];
    
    self.detailsButton=[[UIButton alloc] initWithFrame:CGRectMake(0, 80, WIDTH/2-10, 39)];
//    self.detailsButton.backgroundColor=[UIColor blackColor];
   
    
    
    
    [self.readyButton setTitle:@"已配好" forState:UIControlStateNormal];
    
    [self.noButton setTitle:@"库存不足" forState:UIControlStateNormal];
    
    [self.detailsButton setTitle:@"查看详情" forState:UIControlStateNormal];
    
    [self.readyButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    
    [self.noButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    
    [self.detailsButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    
    
    
    [self addSubview:self.readyButton];
    [self addSubview:self.noButton];
    [self addSubview:self.detailsButton];
}

@end
